package com.zhuchaooasystem.presenter.home.fragment.message;

import android.app.Activity;

import com.zhuchaooasystem.base.BasePresenter;
import com.zhuchaooasystem.widget.ConfirmDialog;

/**
 * @author yinsi
 */


public class MessageReadPresenter extends BasePresenter<MessageReadContract.View> implements MessageReadContract.Presenter {

    public MessageReadPresenter(Activity activity, MessageReadContract.View view) {
        super(activity, view);
    }


    @Override
    public void showDialog() {
        ConfirmDialog dialog = new ConfirmDialog(mActivity);
        dialog.show();
        dialog.setTextTitle("清空提示");
        dialog.setTextContent("确定要清空已读消息？");
        dialog.setOnViewClickListener(new ConfirmDialog.OnViewClickListener() {
            @Override
            public void onClickOk(ConfirmDialog dialog) {

            }

            @Override
            public void onClickCancel(ConfirmDialog dialog) {
                dialog.dismiss();
            }
        });
    }
}
